# coding: utf-8
from application import db
from common.models.user import User
from common.models.department import Department


class UserResign(db.Model):
    __tablename__ = 'user_resign'

    id = db.Column(db.Integer, primary_key=True)
    userid = db.Column(db.Integer,db.ForeignKey('user.id'))
    user = db.relationship('User', foreign_keys=userid)
    resigndate= db.Column(db.Date)
    bpmid=db.Column(db.String(50, 'utf8mb4_0900_ai_ci'))
    updated_time = db.Column(db.DateTime)
    created_time = db.Column(db.DateTime)